home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / fish / 676-700 / 682 / reqchange / install.script < prev    next >
Text File  |  1995-03-18  |  2KB  |  88 lines

  1. FailAt 20
  2.  
  3. Echo "*nReqChange & reqtools.library installation script*n"
  4. Version >NIL: exec.library 37
  5.  
  6. If WARN
  7.     Echo "You don't have AmigaDOS Release 2 (V37) or higher in ROM."
  8.     Echo "Therefore this install script will be somewhat primitive."
  9.     Echo "It will install ReqChange and a 1.3 version of reqtools.library*n"
  10.     Ask  "Copy ReqChange to C:?"
  11.  
  12.     If WARN
  13.         Copy ReqChange C: QUIET
  14.         Echo "ReqChange copied to your C: directory"
  15.     EndIf
  16.  
  17.     Echo ""
  18.     Version >NIL: LIBS:reqtools.library
  19.     If NOT ERROR
  20.         Echo "Version of reqtools.library already installed:"
  21.         Version LIBS:reqtools.library
  22.         Echo ""
  23.     EndIf
  24.  
  25.     Ask  "Copy reqtools.library V37.600 to LIBS:?"
  26.  
  27.     If WARN
  28.         Copy libs13/reqtools.library LIBS: QUIET
  29.         Echo "reqtools.library copied to your LIBS: directory"
  30.     EndIf
  31.  
  32.     Echo "*nInstallation complete."
  33.     Echo "*nEnd of installation script."
  34.     Wait 5
  35.     EndCLI >NIL:
  36. EndIf
  37.  
  38. Echo "This script will install ReqChange, GetFile, ReqAsk and*n"
  39. Echo "reqtools.library for you. You may select if and where to*n
  40. Echo "install the files.*n"
  41.  
  42. Version >NIL: LIBS:reqtools.library
  43. If NOT ERROR
  44.     Echo "Version of reqtools.library already installed:"
  45.     Version LIBS:reqtools.library
  46.     Echo ""
  47. EndIf
  48.  
  49. ReqAsk "Install reqtools.library V37.726 (2.0) or V37.600 (1.3)?*nThe file will be placed in LIBS:" TITLE "Installation Request" GADFMT "2.0|1.3|None"
  50.  
  51. If $ReqAskResult EQ 1
  52.     Copy Libs20/reqtools.library LIBS:
  53.     Echo "reqtools.library for 2.0 copied to your LIBS: directory"
  54.     Avail >NIL: FLUSH
  55. EndIf
  56. If $ReqAskResult EQ 2
  57.     Copy Libs13/reqtools.library LIBS:
  58.     Echo "reqtools.library for 1.3 copied to your LIBS: directory"
  59.     Avail >NIL: FLUSH
  60. EndIf
  61.  
  62. ReqAsk "Should I install ReqChange?" TITLE "Installation Request"
  63.  
  64. If $ReqAskResult EQ 1
  65.     GetFile SYS:WBStartup "Please select destination" NOFILES
  66.  
  67.     If NOT WARN
  68.         Copy ReqChange $GetFileResult QUIET
  69.         Copy ReqChange.info $GetFileResult QUIET
  70.         Echo "*nReqChange copied to $GetFileResult"
  71.     EndIf
  72. EndIf
  73.  
  74. ReqAsk "Should I install ReqAsk and GetFile?*n(These programs brings up the requesters*nyou have been using all the time.*nThey don't need ReqTools to work.*nBut they do need OS 2.04.)" TITLE "Installation Request"
  75. If $ReqAskResult EQ 1
  76.     GetFile C: "Please select destination" NOFILES
  77.  
  78.     If NOT WARN
  79.         Copy ReqAsk $GetFileResult
  80.         Copy GetFile $GetFileResult
  81.         Echo "*nCopied ReqAsk and GetFile to $GetFileResult"
  82.     EndIf
  83. EndIf
  84.  
  85. Echo "*nInstallation complete.*n"
  86. Echo "Use the close gadget to get rid of the window"
  87. Echo "*nEnd of installation script!"
  88.